<?php
/*
Plugin Name: Commentform Resizer
Plugin URI: http://www.laptoptips.ca/projects/commentform-resizer/
Description: Makes the comments form textarea resizable.
Version: 1.0
Author: Andrew Ozz
Author URI: http://www.laptoptips.ca/

Released under the GPL v3, http://www.gnu.org/copyleft/gpl.html

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
*/

function cmnt_resizer() { ?>
<script type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-content/plugins/commentform-resizer/cmnt-resizer.js?ver=1.0"></script>
<?php
}
add_action('comment_form', 'cmnt_resizer' );

function cmnt_resizer_css() {
    if( is_single() || is_page() ) { ?>
<style type="text/css">
#cmnt-resize-handle{font-size:6px;cursor:s-resize;height:6px;margin-top:-1px;border-top:3px dashed #aaa;}
</style>
<?php
    }
}
add_action('wp_head', 'cmnt_resizer_css' );
?>